<template>
  <div>
    <h1>{{info}}</h1>
  </div>
</template>

<script>
export default {
  name: "goodsDetail",
  data() {
    return {
      info: "",
    };
  },
  created() {
    const tmpInfo = this.$route.params.info;
    if (tmpInfo) {
      localStorage.setItem("info", tmpInfo);
    }
  },
  mounted() {
    this.info = localStorage.getItem("info");
    //alert(this.info);
  },
};
</script>
<style>
</style>
